/*
 * JqUtils.scala
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package net.liftweb.widgets.trees.util

import scala.xml.{NodeSeq, Group, Unparsed, Elem}
import net.liftweb.http.js.JsExp
import net.liftweb.http.js.jquery.{JQueryRight, JQueryLeft}  // 0.10

/*
 * should be part of net.liftweb.http.js.jquery.JQueryCommands
 */

 /**
  * insert content after a JQuery
  */
case class JqAfter (content: NodeSeq) extends JsExp with JQueryRight with JQueryLeft {
  override def toJsCmd = "after(" + fixHtml ("inline", content)+")"
}

 /**
  * addClass
  */
case class JqAddClass (_clazz: JsExp) extends JsExp with JQueryRight with JQueryLeft {
  override def toJsCmd = "addClass(" + _clazz.toJsCmd+")"
}

 /**
  * removeClass
  */
case class JqRemoveClass (_clazz: JsExp) extends JsExp with JQueryRight with JQueryLeft {
  override def toJsCmd = "removeClass(" + _clazz.toJsCmd+")"
}

 /**
  * unbind
  */
case class JqUnbind (event: JsExp) extends JsExp with JQueryRight with JQueryLeft {
  override def toJsCmd = "unbind(" + event.toJsCmd+")"
}

